package com.nys.conci.base.validador.anotacion;

import com.nys.conci.base.validador.TelefonoValidator;
import java.lang.annotation.*;
import javax.validation.Constraint;
import javax.validation.Payload;

/**
 *
 * @author Adam M. Gamboa Gonźalez
 */
@Documented
@Constraint(validatedBy = TelefonoValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Telefono {

    String message() default "{com.gbsys.prototipo.base.validador.Telefono}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
